﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Light.Framework
{
    /// <summary>
    /// 多对多关系映射信息
    /// </summary>
    public class ManyToManyInfo
    {
        public ManyToManyInfo()
        {

        }

        /// <summary>
        /// 属性名
        /// </summary>
        public string PropertyName { get; set; }

        /// <summary>
        /// 关联表的对应的实体类型
        /// </summary>
        public Type Type { get; set; }

        /// <summary>
        /// 表别名
        /// </summary>
        public string Alias { get; set; }

        /// <summary>
        /// 多对多关系表名
        /// </summary>
        public string Table { get; set; }

        /// <summary>
        /// 当前表主键列
        /// </summary>
        public string ColumnKey { get; set; }

        /// <summary>
        /// 关联表主键列
        /// </summary>
        public string ColumnRef { get; set; }
    }
}
